/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.app.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * btc 下单
 *
 * @author macy
 */
@Data
@ApiModel(value = "btc下单")
public class BtcForm {

    @ApiModelProperty(value = "买入本金")
    @NotNull(message = "买入本金不能为空")
    private int inAmount;

    @ApiModelProperty(value = "倍数")
    @NotNull(message = "买入倍数不能为空")
    private int rate;

    @ApiModelProperty(value = "buy=多 sell=空")
    @NotBlank(message="方向不能为空")
    private String direction;

    @ApiModelProperty(value = "类型")
    @NotBlank(message="类型不能为空")
    private String txCurrency;


    @ApiModelProperty(value = "最新价格")
    @NotNull(message = "最新价格不能为空")
    private Double amount;
}
